package net.koodar.forge.system.support.loginLog.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import net.koodar.forge.system.support.loginLog.model.dto.LoginLogQueryDTO;
import net.koodar.forge.system.support.loginLog.service.LoginLogService;
import net.koodar.forge.common.domain.dto.Response;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录日志接口
 *
 * @author liyc
 */
@Tag(name = "LoginLogController", description = "系统管理-登录日志")
@RestController
@RequiredArgsConstructor
public class LoginLogController {

	private final LoginLogService loginLogService;

	@Operation(summary = "查询登录日志列表")
	@GetMapping("/loginLog/list")
	public Response getUserList(LoginLogQueryDTO loginLogQuery) {
		return loginLogService.pageBy(loginLogQuery);
	}

}
